#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <time.h>
#include <stdlib.h>

#define HANGS 11
#define LIES  11
#define HANG  (HANGS - 2)
#define LIE   (LIES - 2)
#define NUM   10

void init_lei(char leiqu[HANGS][LIES], int hangs, int lies, char p);

void put_lei(char leiqu[HANGS][LIES], int hang, int lie, int num);

void invest_lei(char leiqu[HANGS][LIES], char show[HANGS][LIES], int hang, int lie, int n);

void show_lei(char leiqu[HANGS][LIES], int hang, int lie);

int zhouwei(char leiqu[HANGS][LIES], int hang, int lie);